<?php
/**
 * php GEM Project
 * 
 * LICENSE
 * 
 * PHP System Architecture Enabling Rapid Application Deployment and Scalability
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * 
 * @copyright Copyright (C) 2010 Zeletron LLC (http://zeletron.com)
 * @license http://gem.zeletron.com/license
 */

/*
 * GEM/Form/UserSignupForm.php
 
 * @author David Joly
 * @link http://zeletron.com
 * 
 * @category GEM
 * @package GEM_Form
 */
class GEM_Form_UserSignupForm extends GEM_Form_Form
{
	function init()
	{
		$this->_formName = $form = 'userSignupForm';
		$this->setAttrib('id',$form);
		$this->addElements(array(
			GEM_Form_UserFormElements::username($form,true),
			GEM_Form_UserFormElements::fullname($form),
			GEM_Form_UserFormElements::email($form, true),
			GEM_Form_UserFormElements::confirmEmail($form,true),
			GEM_Form_UserFormElements::locale($form),
			GEM_Form_UserFormElements::timezone($form),
			GEM_Form_UserFormElements::password($form, true),
			GEM_Form_UserFormElements::confirmPassword($form),
			GEM_Form_UserFormElements::captcha($form),
			GEM_Form_UserFormElements::submit('Signup'),
			GEM_Form_UserFormElements::noCSRF($form)
		));
	}
}